package com.ruoyi.web.domain;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Date;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售单对象 user_order
 * 
 * @author ruoyi
 * @date 2025-06-11
 */
public class UserOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 所属公司 */
    @Excel(name = "所属公司")
    private Long companyId;

    /** 商户id */
    @Excel(name = "商户id")
    private Long merchantId;

    /** 商户name */
    @Excel(name = "商户name")
    private String merchantName;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 是否结算   0 未结算  1已结算 */
    @Excel(name = "是否结算   0 未结算  1已结算")
    private String isSettlement;

    /** 创建者 */
    @Excel(name = "创建者")
    private Long creator;

    /** 是否删除   1 已删除 */
    @Excel(name = "是否删除   1 已删除")
    private String isDel;

    /** 签名或者拍照上传路径 */
    @Excel(name = "签名或者拍照上传路径")
    private String sign;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date start;
    
    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date end;

    /** 销售详情 */
    private List<UserOrderDetail> detailList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }

    public void setMerchantName(String merchantName) 
    {
        this.merchantName = merchantName;
    }

    public String getMerchantName() 
    {
        return merchantName;
    }

    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    public void setIsSettlement(String isSettlement) 
    {
        this.isSettlement = isSettlement;
    }

    public String getIsSettlement() 
    {
        return isSettlement;
    }

    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }

    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    public void setSign(String sign) 
    {
        this.sign = sign;
    }

    public String getSign() 
    {
        return sign;
    }

    public void setStart(Date start) 
    {
        this.start = start;
    }

    public Date getStart() 
    {
        return start;
    }

    public void setEnd(Date end) 
    {
        this.end = end;
    }

    public Date getEnd() 
    {
        return end;
    }

    public void setDetailList(List<UserOrderDetail> detailList) 
    {
        this.detailList = detailList;
    }

    public List<UserOrderDetail> getDetailList() 
    {
        return detailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("merchantId", getMerchantId())
            .append("merchantName", getMerchantName())
            .append("date", getDate())
            .append("isSettlement", getIsSettlement())
            .append("creator", getCreator())
            .append("isDel", getIsDel())
            .append("sign", getSign())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
